{% load i18n lfs_tags %}

<div id="price-criteria">
    
    <h1>
        {% trans 'Edit criteria for' %} {{shipping_price.price|currency:request}}
    </h1>
    
    <form action="{% url lfs_manage_save_shipping_price_criteria shipping_price.id %}"
          method="post">

        <div class="top-buttons">            
            <a class="criterion-add-first-button"
                href="{% url lfs_add_criterion %}">
                <img src="{{ STATIC_URL }}icons/add.png"
                     class="icon-padding"
                     alt="{% trans 'Add criterion' %}" />
                {% trans 'Add criterion' %}
            </a>
        </div>

        <table class="criteria">
            {% for criterion in criteria %}
                {{criterion|safe}}
            {% endfor %}
        </table>

        <div class="buttons">
            <input class="ajax-save-button button" 
                   type="submit" 
                   value="{% trans 'Save criteria' %}" />
        </div>

    </form>
</div>